#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
int s[10000], top;

int main() {
	int n; cin >> n;
	for (int i = 1; i <= n; i++) {
		int x; cin >> x;
		s[++top] = x;
	}

	while (top) {
		cout << s[top] << endl;
		top--;
	}
	return 0;
}